-- DV Converter.applescript
-- DV Converter

--  Created by Marc Monguio on 29/10/07.
--  Copyright 2007 __MyCompanyName__. All rights reserved.

on idle
	(* Add any idle time processing here. *)
end idle

on open _files
	repeat with _file in _files
		set _path_to_me to (path to me) as string
		set _fullpath to _path_to_me & "Contents:MacOS:ffmpeg"
		set myapp to (POSIX path of _fullpath) as string
		do shell script quoted form of myapp & " -i " & quoted form of (POSIX path of _file) & " -target pal-dv " & quoted form of (POSIX path of _file) & ".dv"
	end repeat
	quit
end open